import "./App.scss";
import { Routes, Route } from "react-router-dom";
import Money from "components/HomePage";
import Statistics from "components/Stastistic";
import Tags from "components/User";
import Note from "views/Note/Note";
import EditTag from "views/EditTag/EditTag";
import TagModifyPage from "views/EditTag/TagModify";
import StatisticsHome from "views/statistics/statisticsHome";
import UserHome from "views/user/UserHome";
function App() {
    
  return (
    <Routes>
      {/**
       * v5版使用的是Switch估计改成了Routes
       */}
      <Route path="/">
        <Route index element={<Money />} />
        <Route path="money" element={<Money />} />
        <Route path="statistics" element={<StatisticsHome />} />
        <Route path="tags" element={<UserHome />} />
        <Route path="note" element={<Note />} />
        <Route path="note/edit" element={<EditTag />} />
        <Route path="note/edit/:tag" element={<TagModifyPage />} />
      </Route>
    </Routes>
  );
}

export default App;
